package com.hongmeng.web.controller.customer;

import com.hongmeng.common.core.controller.BaseController;
import com.hongmeng.common.core.domain.AjaxResult;
import com.hongmeng.customer.service.IHmCustomerManageService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;


/**
 * 企业管理Controller
 *
 * @author hongmeng
 * @date 2021-01-18
 */
@ApiOperation("企业管理")
@RestController
@RequestMapping("/customerManage")
@PreAuthorize("@ss.hasRole('customer')")
public class HmCustomerManageController extends BaseController {

    @Autowired
    private IHmCustomerManageService customerManageService;

    /**
     * 获取当前登录企业详细信息
     */
    @ApiOperation("获取当前登录企业详细信息")
    @GetMapping("/getInfo")
    public AjaxResult getInfo() {
        return customerManageService.selectCustomerInfo();
    }
}
